[dbo].[sp_asi_DeleteCmty]
SQLServer
>
iMIS1521GA
>
Stored Procedures
> dbo.sp_asi_DeleteCmty
Properties
Parameters
Permissions
SQL Script
Uses
Properties
Property
Value
ANSI Nulls On
Quoted Identifier On
Parameters
Name
Data Type
Max Length (Bytes)
@cmty_seq
int
4
Permissions
Type
Action
Owning Principal
Grant
Execute
IMIS
SQL Script
CREATE
PROCEDURE
sp_asi_DeleteCmty
@cmty_seq
int
as
delete
from
Cmty_Read_Tracking
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_News
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Administrators
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Subscription
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Invitees
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Discussion_Posts
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Discussion_Forums
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Shared_Files
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Shared_Folders
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Cmty_Email_Notification
where
COMMUNITY_SEQ
=
@cmty_seq
delete
from
Community
where
COMMUNITY_SEQ
=
@cmty_seq
return
GO
GRANT
EXECUTE
ON
[dbo]
.
[sp_asi_DeleteCmty]
TO
[IMIS]
GO
Uses
[dbo].[Cmty_Administrators]
[dbo].[Cmty_Discussion_Forums]
[dbo].[Cmty_Discussion_Posts]
[dbo].[Cmty_Email_Notification]
[dbo].[Cmty_Invitees]
[dbo].[Cmty_News]
[dbo].[Cmty_Read_Tracking]
[dbo].[Cmty_Shared_Files]
[dbo].[Cmty_Shared_Folders]
[dbo].[Cmty_Subscription]
[dbo].[Community]
dbo